﻿using System.IO;
using System.Web.Hosting;

namespace AspectsSample.Contracts
{
    internal class RepositoryBase
    {
        protected string XmlDoc;

        protected void ReadXmlFile(string file)
        {
            var folder = HostingEnvironment.MapPath("~/App_Data/");
            XmlDoc = File.ReadAllText(Path.Combine(folder, file));
        }
    }
}
